<template>
  <div>
    <van-calendar
      title="日历"
      :poppable="false"
      :show-confirm="false"
      :style="{ height: '500px' }"
    />
    <van-button type="primary">主要按钮</van-button>
    <van-button type="info">信息按钮</van-button>
    <van-button type="default">默认按钮</van-button>
    <van-button type="warning">警告按钮</van-button>
    <van-button type="danger">危险按钮</van-button>
  </div>
</template>

<script>
import request from './utils/request'
import { setToken } from './utils/storage'

export default {
  data () {
    return {}
  },
  async created () {
    const res = await request.post('/user/login', {
      username: 'web85',
      password: '123123'
    })
    console.log(res)
    setToken(res.data.data.token)
  }
}
</script>

<style lang="scss" scoped>

</style>
